// $Id$
// Licensed under Apache License Version 2.0
// See: http://www.apache.org/licenses/LICENSE-2.0.html
package de.servicezombie.tcmdb.rest.service;

import de.servicezombie.cxf.WebserviceTemplate;
import de.servicezombie.cxf.WebserviceTemplateFactory;
import de.servicezombie.pub.r1.Message;

public class SoftwarebugServiceRestImpl implements SoftwarebugService {
	
	/**
	 * This implementation throws always a IllegalArgumentException
	 */
	public void getDetails(String system, String id) {		
		WebserviceTemplate template = new WebserviceTemplateFactory().build();
		template.getWebserviceResponse().getMessages().addError(new Message("error.softwarebugs.unknown-system", null));
		throw new IllegalArgumentException("the given system " + system + " is not supported.");
	}

}
